package com.hqbzl.c1.code;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TestWhile {
    public static void main(String[] args) {
        long x = 10;
        while (x >= 0) {
            log.debug("{}", x);
            x = calc(x);
        }
    }

    private static long calc(long x) {
        long sub = x - 1;
        return sub;
    }
}
